package com.twoGroup.boot.service.imp;

import com.alipay.api.AlipayApiException;

import com.twoGroup.boot.pojo.AlipayBean;
import com.twoGroup.boot.service.PayService;
import com.twoGroup.boot.utils.AlipayUtil;
import org.springframework.stereotype.Service;

/**
 * @ClassName
 * @Description TODO
 * @Author Xuyujie
 * @Date 2021/5/12 11:35
 * @Version 1.0
 **/
/* 支付服务 */
@Service(value = "alipayOrderService")
public class PayServiceImpl implements PayService {
    @Override
    public String aliPay(AlipayBean alipayBean) throws AlipayApiException {
        return AlipayUtil.connect(alipayBean);
    }
}